package com.dhu.cst.ningtianzhe181310419.test;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import androidx.appcompat.app.AppCompatActivity;

public class InfoActivity extends AppCompatActivity {
    public EditText email,school,address;
    public Button nextStep;
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_info);
        this.getSupportActionBar().hide();
        initView();
        nextStep.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Info.email = email.getText().toString();
                Info.school = school.getText().toString();
                Info.address = address.getText().toString();
                Intent intent = new Intent(InfoActivity.this,RegisterPasswordActivity.class);
                InfoActivity.this.startActivity(intent);
            }
        });
    }

    public void initView(){
        email = this.findViewById(R.id.email);
        school = this.findViewById(R.id.school);
        address = this.findViewById(R.id.address);
        nextStep = this.findViewById(R.id.nextStep);
    }
}
